[CMake] syntax error on Win7 x64
Dev Guy
devguy.ca at gmail.com
Wed Feb 1 00:35:55 EST 2012
OK I realized my error, I should be using $ENV{MSSDK_ROOT}
On Wed, Feb 1, 2012 at 12:02 AM, Dev Guy <devguy.ca at gmail.com> wrote:
> I am seeing an error from CMake on Win7 x64 that I don't see in WinXP.
>
> The following 2 statements seems to be causing the errors below (I've
> double checked that the environment var MSSDK_ROOT exists and is
> defined).
>
> include_directories("${ENV[MSSDK_ROOT]}\\Include")
> link_directories("${ENV[MSSDK_ROOT]}\\Lib")
>
> ==== CMake Error =======
>
> CMake Warning (dev) at CMakeLists.txt:9 (include_directories):
> Syntax error in cmake code at
>
> C:/dev/cpp/Project/safetynet/MonitorTestClient/CMakeLists.txt:9
>
> when parsing string
>
> ${ENV[MSSDK_ROOT]}\\Include
>
> syntax error, unexpected cal_SYMBOL, expecting } (18)
>
> Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
> "cmake --help-policy CMP0010" for policy details. Use the cmake_policy
> command to set the policy and suppress this warning.
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> CMake Warning (dev) at CMakeLists.txt:10 (link_directories):
> Syntax error in cmake code at
>
> C:/dev/cpp/Project/safetynet/MonitorTestClient/CMakeLists.txt:10
>
> when parsing string
>
> ${ENV[MSSDK_ROOT]}\\Lib
>
> syntax error, unexpected cal_SYMBOL, expecting } (18)
>
>
> --
> Kind Regards,
> Rajinder Yadav
--
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely
GNU/Linux: 2.6.35-22-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.1
More information about the CMake
mailing list