summaryrefslogtreecommitdiff
path: root/devel/aws-c-commons/files/patch-CMakeLists.txt
blob: 584f23a81e7455942ed848224bfb7deb17351d9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- CMakeLists.txt.orig	2019-01-09 19:56:14 UTC
+++ CMakeLists.txt
@@ -104,7 +104,6 @@ if (PERFORM_HEADER_CHECK)
 endif()
 
 add_library(${CMAKE_PROJECT_NAME} ${COMMON_SRC})
-aws_set_common_properties(${CMAKE_PROJECT_NAME} NO_WEXTRA)
 aws_prepare_symbol_visibility_args(${CMAKE_PROJECT_NAME} "AWS_COMMON")
 
 #apple source already includes the definitions we want, and setting this posix source
@@ -205,7 +204,7 @@ install(FILES ${EXPORT_MODULES}
         DESTINATION "${LIBRARY_DIRECTORY}/cmake"
         COMPONENT Development)
 
-if (NOT CMAKE_CROSSCOMPILING)
+if (NOT CMAKE_CROSSCOMPILING AND BUILD_TESTING)
     include(CTest)
     add_subdirectory(tests)
 endif()