File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,13 @@ include(ProjConfig)
156156include (ProjMac)
157157include (policies)
158158
159+ ##############################################
160+ ### SWITCH BETWEEN STATIC OR SHARED LIBRARY###
161+ ##############################################
162+
163+ # default config is shared
164+ option (BUILD_SHARED_LIBS "Build PROJ library shared." ON )
165+
159166################################################################################
160167# Check for nlohmann_json
161168################################################################################
@@ -368,6 +375,9 @@ function (is_sharp_embed_available res)
368375endfunction ()
369376
370377is_sharp_embed_available(IS_SHARP_EMBED_AVAILABLE_RES)
378+ if (NOT DEFINED BUILD_SHARED_LIBS )
379+ message (FATAL_ERROR "BUILD_SHARED_LIBS should be set" )
380+ endif ()
371381if (NOT BUILD_SHARED_LIBS )
372382 set (DEFAULT_EMBED_RESOURCE_FILES ON )
373383else ()
Original file line number Diff line number Diff line change 11message (STATUS "Configuring proj library:" )
22
3- ##############################################
4- ### SWITCH BETWEEN STATIC OR SHARED LIBRARY###
5- ##############################################
6-
7- # default config is shared
8- option (BUILD_SHARED_LIBS
9- "Build PROJ library shared." ON )
10-
113find_package (Threads QUIET )
124if (Threads_FOUND AND CMAKE_USE_PTHREADS_INIT)
135 add_definitions (-DPROJ_HAS_PTHREADS)
You can’t perform that action at this time.
0 commit comments