On windows 7 64 bit, the vs9 linker will crash when linking an application with a resource in it.
8 lines
252 B
CMake
8 lines
252 B
CMake
cmake_minimum_required (VERSION 2.6)
|
|
project (VSResource)
|
|
add_definitions(/DCMAKE_RCDEFINE="test.txt")
|
|
string(REPLACE "/INCREMENTAL:YES" ""
|
|
CMAKE_EXE_LINKER_FLAGS_DEBUG
|
|
"${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
|
|
add_executable(VSResource main.cpp test.rc)
|