[CMake] Common language runtime

2014-12-05 Thread Apoorva Gaddagimath
Hi everyone, I'm trying to add a .NET assembly reference to my CMake project. Various forums on Google suggested to use /clr. The problem I've found, is that while CMake sets the Common Language RunTime Support option in the C/C++ section of the configuration properties if /clr is in the

Re: [CMake] Common language runtime

2014-12-05 Thread J Decker
To enable compiling as/with CLR... SET_TARGET_PROPERTIES(bag PROPERTIES COMPILE_FLAGS /CLR ) # need to set unicode characters... add_definitions( -D_UNICODE -DUNICODE ) string( REPLACE /EHsc CMAKE_CXX_FLAGS_INIT ${CMAKE_CXX_FLAGS_INIT} ) string( REPLACE /EHsc