We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5020466 commit 25b40d0Copy full SHA for 25b40d0
1 file changed
CMakeLists.txt
@@ -57,7 +57,11 @@ add_subdirectory("${PROJECT_NAME}")
57
58
include(CTest)
59
option(BUILD_TESTING "Build the tests" ON)
60
-option(C89STRINGUTILS_BUILD_TESTING "Build the tests" ON)
+if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
61
+ option(C89STRINGUTILS_BUILD_TESTING "Build the tests" ON)
62
+else()
63
+ option(C89STRINGUTILS_BUILD_TESTING "Build the tests" OFF)
64
+endif()
65
66
if (CDD_CHARSET STREQUAL "Unicode")
67
add_compile_definitions(UNICODE _UNICODE)
@@ -124,3 +128,4 @@ write_basic_package_version_file(
124
128
)
125
129
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
126
130
DESTINATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}")
131
+
0 commit comments