summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-03-15 14:30:57 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-03-22 10:36:10 (GMT)
commitd6583327827a7d53b358cbec03186293c4a5d53d (patch)
tree3b8a74c1aaafb03013aea079fe831b841d989335 /Tests/RunCMake
parente4039a8e34d3ac01abb88851cacc5eb043a0cbc2 (diff)
downloadCMake-d6583327827a7d53b358cbec03186293c4a5d53d.zip
CMake-d6583327827a7d53b358cbec03186293c4a5d53d.tar.gz
CMake-d6583327827a7d53b358cbec03186293c4a5d53d.tar.bz2
Genex-LINK_GROUP: Add support feature RESCAN on BSD systems
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/target_link_libraries-LINK_GROUP/RunCMakeTest.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/target_link_libraries-LINK_GROUP/RunCMakeTest.cmake b/Tests/RunCMake/target_link_libraries-LINK_GROUP/RunCMakeTest.cmake
index 8307bb2..400905c 100644
--- a/Tests/RunCMake/target_link_libraries-LINK_GROUP/RunCMakeTest.cmake
+++ b/Tests/RunCMake/target_link_libraries-LINK_GROUP/RunCMakeTest.cmake
@@ -63,7 +63,7 @@ if ((RunCMake_GENERATOR MATCHES "Makefiles|Ninja|Xcode"
endif()
# Feature RESCAN
-if (CMAKE_SYSTEM_NAME STREQUAL "Linux"
+if (CMAKE_SYSTEM_NAME MATCHES "Linux|BSD"
OR (CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND (NOT CMAKE_C_COMPILER_ID STREQUAL "SunPro" OR CMAKE_C_COMPILER_VERSION VERSION_GREATER "5.9"))
OR (WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "GNU"))
run_cmake(rescan)