- 
      
 - 
        
Save congzhangzh/4efbe833ae31ccbf3a9f707e376f1800 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
DavidHamburg revised this gist
May 15, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5) project(myproject) set(SOURCE_FILES src/main.cpp) add_executable(myproject ${SOURCE_FILES}) set_target_properties(${PROJECT_NAME} PROPERTIES VS_DOTNET_TARGET_FRAMEWORK_VERSION "v4.6") set_target_properties(${PROJECT_NAME} PROPERTIES VS_DOTNET_REFERENCES "System") set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/clr /EHa")  - 
        
DavidHamburg created this gist
May 15, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ cmake_minimum_required(VERSION 3.5) project(myproject) set(SOURCE_FILES src/main.cpp) add_executable(regasm-without-uac ${SOURCE_FILES}) set_target_properties(${PROJECT_NAME} PROPERTIES VS_DOTNET_TARGET_FRAMEWORK_VERSION "v4.6") set_target_properties(${PROJECT_NAME} PROPERTIES VS_DOTNET_REFERENCES "System") set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/clr /EHa") string(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") string(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") TARGET_LINK_LIBRARIES(myproject)