How to add the "DEF" and "NODEFAULTLIB" linker flags to the vs2012 project via CMAKE?
You can add them to CMAKE_EXE_LINKER_FLAGS :
CMAKE_EXE_LINKER_FLAGS
if(MSVC) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEF:my_defs.def /NODEFAULTLIB") endif()
Source: https://habr.com/ru/post/1502047/More articles:MYSQL Sum of row to count and limit to top 15 - sqlWhat [neon / vfp / vfp3] should be specified for mfpu when evaluating and comparing float performance in an ARM processor? - performanceDoes the LinkedIn API get all the employees in the company? - apiHow to store distances between places? - phpcommand to check status of message queue and shared memory in Linux? - linuxChrome driver does not exit after capybara test - google-chromestd :: vector :: insert, is it normal to call it as the first parameter? - c ++Start / stop while loop? - pythonCovariance with a common type and expression - genericsJava Data Encryption / Decryption - javaAll Articles