Re: [CMake] setting clrsupport VS2010

2016-10-19 Thread Benjamin Ballet via CMake
Hi here is all the property I had to set to produce C++/CLI (clr) targets with cmake target_compile_options(${project_name} PRIVATE /clr) target_compile_options(${project_name} PRIVATE /fp:precise) # /fp:strict is incompatible with /clr set_property(TARGET ${project_name} PROPERTY VS

[CMake] setting clrsupport VS2010

2016-10-19 Thread Swetha Sharma
I am trying to create a managed c++ code , i want to thes clrsupport to be true from cmake. Below is the script which i have used SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/clr") STRING(REPLACE "/EHsc" "/EHa" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) STRING(REPLACE "/RTC1" "" CM