mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
These have been added to: GCC_PREPROCESSOR_DEFINITIONS OTHER_CFLAGS OTHER_LDFLAGS This is to allow Cocoapods to work correctly as it uses xcconfig files to alter build settings in Xcode, and requires these build settings to inherit from their parent, not overwrite.
9 lines
231 B
CMake
9 lines
231 B
CMake
enable_language(C)
|
|
|
|
add_compile_definitions(TEST_INHERITTEST)
|
|
string(APPEND CMAKE_C_FLAGS " -DTESTFLAG=\\\"TEST_INHERITTEST\\\"")
|
|
|
|
add_executable(inherit_test main.c)
|
|
|
|
target_link_libraries(inherit_test PRIVATE "TEST_INHERITTEST")
|