015309fc9f
The VS 6 IDE does not like spaces in definition values so CMake drops them and warns. The Tests/CompileDefinitions test C code that looks for the dropped definitions already knows to skip them, but CMake still warns. Silence the warnings by avoiding such values in the first place on VS 6.
16 lines
531 B
CMake
16 lines
531 B
CMake
|
|
project(add_definitions_command)
|
|
|
|
add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun -DCMAKE_IS_="Fun")
|
|
if (NOT NO_SPACES_IN_DEFINE_VALUES)
|
|
add_definitions(-DCMAKE_IS_REALLY="Very Fun")
|
|
endif()
|
|
add_definitions(-DCMAKE_IS_="Fun")
|
|
if (NOT NO_SPACES_IN_DEFINE_VALUES)
|
|
add_definitions(-DCMAKE_IS_REALLY="Very Fun")
|
|
endif()
|
|
add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun)
|
|
add_definitions(-DBUILD_IS_DEBUG=$<CONFIG:Debug> -DBUILD_IS_NOT_DEBUG=$<NOT:$<CONFIG:Debug>>)
|
|
|
|
add_executable(add_definitions_command_executable ../compiletest.cpp)
|