[CMake] problems with Visual Studio Express 2013 compile

2014-03-24 Thread Michael Surette
I have the following macro. macro(FL_ADD_LIBRARY LIBNAME LIBTYPE LIBFILES) if(${LIBTYPE} STREQUAL "SHARED") set(LIBRARY_NAME "${LIBNAME}_SHARED") else() set(LIBRARY_NAME "${LIBNAME}") endif(${LIBTYPE} STREQUAL "SHARED") add_library(${LIBRARY_NAME} ${LIBTYPE} ${LI

[CMake] export library target

2014-03-24 Thread Nico Schlömer
Hi all, I'm exporting several library targets of a projects using the mechanism described on . Next to `/path/to/lib/cmake/myproject/myprojectTargets.cmake`, the file `/path/to/lib/cmake/myproject/myprojec

Re: [CMake] Regarding option for regenerating CMakeCache everytime we do cmake

2014-03-24 Thread Marcel Loose
On 24/03/14 11:01, Devyani Godbole wrote: > Hi , > I am getting a problem wherein the if I add the flag say -DWITH_DATE=1 > and do a cmake I get it enabled. But now if I do not use this flag and > again do cmake , it still remains DEFINED i.e. it is still present in > CMakeCache. > > I do not want

Re: [CMake] Regarding option for regenerating CMakeCache everytime we do cmake

2014-03-24 Thread Nils Gladitz
On 03/24/2014 11:01 AM, Devyani Godbole wrote: Hi , I am getting a problem wherein the if I add the flag say -DWITH_DATE=1 and do a cmake I get it enabled. But now if I do not use this flag and again do cmake , it still remains DEFINED i.e. it is still present in CMakeCache. I do not want it to

[CMake] Regarding option for regenerating CMakeCache everytime we do cmake

2014-03-24 Thread Devyani Godbole
Hi , I am getting a problem wherein the if I add the flag say -DWITH_DATE=1 and do a cmake I get it enabled. But now if I do not use this flag and again do cmake , it still remains DEFINED i.e. it is still present in CMakeCache. I do not want it to be DEFINED if I have not specified it in cmake co