0a561a0347
Since cmTarget::ComputeLinkInterface is called separately for each "head" target that links a target, the warning we produce when CMP0022 is not set could be repeated. Add explicit logic to allow the warning to appear at most once. Multiple copies of the warning for the same target are almost always identical and therefore redundant. In the rare case that two copies of the warning are different, the second can appear in a future run after the first is fixed.
8 lines
222 B
CMake
8 lines
222 B
CMake
enable_language(CXX)
|
|
|
|
add_library(testLib empty_vs6_1.cpp)
|
|
add_executable(testExe empty_vs6_2.cpp)
|
|
target_link_libraries(testExe testLib)
|
|
|
|
export(TARGETS testExe FILE "${CMAKE_CURRENT_BINARY_DIR}/cmp0022NOWARN-exe.cmake")
|