[CMake] fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

2017-01-20 Thread Swetha Sharma
Hi All, I have a project which i have generated with cmake and running in visual studio 2010.I changed the configuration to x64,in visual studio my active solution and the Target Machine in(Properties->Linker->Advanced) is set as x64.I still get the linker LNK1112 error.Is this something which i

[CMake] strong name keyfile for c#project with cmake

2016-10-20 Thread Swetha Sharma
How to include a strong name keyfile to c++/cli project with cmakelists -swetha -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on e

[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