File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
# See README.CMake
9
9
10
+ set (PACKAGE shp )
11
+ if (TARGET ${PACKAGE} )
12
+ return ()
13
+ endif ()
14
+
10
15
# Version 3.11 or above of cmake is currently required for all platforms.
11
16
cmake_minimum_required (VERSION 3.11 )
12
17
project (shapelib C CXX )
@@ -49,7 +54,6 @@ if(BUILD_SHARED_LIBS AND (WIN32 OR CYGWIN))
49
54
set (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} /dll )
50
55
endif ()
51
56
52
- set (PACKAGE shp )
53
57
54
58
# Set up install locations.
55
59
set (
@@ -202,8 +206,9 @@ endif()
202
206
203
207
find_program (BASH_EXECUTABLE bash )
204
208
if (BASH_EXECUTABLE )
205
- set (BUILD_TESTING ON CACHE BOOL "Build the testing tree." )
209
+ option (BUILD_TESTING "Build tests" ON )
206
210
else ()
211
+ set (BUILD_TESTING OFF CACHE BOOL "Disable tests" )
207
212
message (STATUS "WARNING: bash not available so disabling testing" )
208
213
endif ()
209
214
You can’t perform that action at this time.
0 commit comments