[CMake] CMake CVS SET gratuitous semicolon
Brandon J. Van Every
bvanevery at gmail.com
Wed Feb 15 13:58:21 EST 2006
I'm using CMake CVS built with MinGW / MSYS. I have this in CMakeLists.txt.
SET(SHARED_FLAGS -DC_NO_PIC_NO_DLL -DPIC)
Then I do cmakesetup from the MSYS shell. I delete cache, configure,
hit ok. "make -n chicken" reveals:
e:/Dev-Cpp/bin/gcc.exe -DCBUILDING_LIBCHICKEN -DC_NO_PIC_NO_DLL;-DPIC
-Dchicken_EXPORTS -IE:/devel/src/chicken-2.216 -Dsocklen_t=int
-DHAVE_WINDOWS_H -o CMakeFiles/chicken.dir/posixwin.obj -c
E:/devel/src/chicken-2.216/posixwin.c
Note the gratuitous semicolon. When I change my code to
SET(SHARED_FLAGS "-DC_NO_PIC_NO_DLL -DPIC")
then do cmakesetup from the MSYS shell, delete cache, configure, hit ok,
"make -n chicken" reveals correct behavior:
e:/Dev-Cpp/bin/gcc.exe -DCBUILDING_LIBCHICKEN -DC_NO_PIC_NO_DLL -DPIC
-Dchicken_EXPORTS -IE:/devel/src/chicken-2.216 -Dsocklen_t=int
-DHAVE_WINDOWS_H -o CMakeFiles/chicken.dir/posixwin.obj -c
E:/devel/src/chicken-2.216/posixwin.c
Cheers,
Brandon Van Every
More information about the CMake
mailing list