diff options
author | Felix Lelchuk <felix.lelchuk@gmx.de> | 2021-08-21 11:52:49 (GMT) |
---|---|---|
committer | Felix Lelchuk <felix.lelchuk@gmx.de> | 2021-08-24 17:21:40 (GMT) |
commit | 047d46ebdbb87f0388fa1627a3c39810e0b08c69 (patch) | |
tree | c81e2f73673755c7400cdaf6e70d0d93451d5dcf /Tests/InstallMode/subpro_c_nested_lib | |
parent | f64e8036aa1498edc34b1624df9dc8633467e7ef (diff) | |
download | CMake-047d46ebdbb87f0388fa1627a3c39810e0b08c69.zip CMake-047d46ebdbb87f0388fa1627a3c39810e0b08c69.tar.gz CMake-047d46ebdbb87f0388fa1627a3c39810e0b08c69.tar.bz2 |
Fix: InstallMode tests fail on some platforms
1) The ExternalProject_Add() command was called with
UPDATE_COMMAND ";" which was not noticable on most platforms
2) On AIX/GCC, the executable did not link because symbols from
imported libraries were assumed extern "C" (see commit 4fc47424)
Diffstat (limited to 'Tests/InstallMode/subpro_c_nested_lib')
-rw-r--r-- | Tests/InstallMode/subpro_c_nested_lib/subsubpro_c2_lib/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/InstallMode/subpro_c_nested_lib/subsubpro_c2_lib/CMakeLists.txt b/Tests/InstallMode/subpro_c_nested_lib/subsubpro_c2_lib/CMakeLists.txt index e139446..7580c77 100644 --- a/Tests/InstallMode/subpro_c_nested_lib/subsubpro_c2_lib/CMakeLists.txt +++ b/Tests/InstallMode/subpro_c_nested_lib/subsubpro_c2_lib/CMakeLists.txt @@ -18,6 +18,9 @@ target_link_libraries(the_c2_lib the_c1_lib ) +# This is to fix an issue on AIX/GCC (see commit 4fc47424) +set_property(TARGET the_c2_lib PROPERTY NO_SYSTEM_FROM_IMPORTED 1) + target_include_directories(the_c2_lib PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> |