File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ cmake_minimum_required (VERSION 2.6...3.10.2)
2
2
project (CGenerator)
3
3
4
4
cmake_policy (SET CMP0063 NEW)
5
-
6
5
set (CMAKE_C_VISIBILITY_PRESET default)
7
6
set (CMAKE_CXX_VISIBILITY_PRESET default)
8
7
set (CMAKE_VISIBILITY_INLINES_HIDDEN OFF )
@@ -34,12 +33,17 @@ set(PROJECT_VERSION_MAJOR 0)
34
33
set (PROJECT_VERSION_MINOR 0)
35
34
set (PROJECT_VERSION_PATCH 1)
36
35
37
- find_package (CURL 7.58.0 REQUIRED)
38
- if (CURL_FOUND)
36
+ if ( (DEFINED CURL_INCLUDE_DIR) AND (DEFINED CURL_LIBRARIES))
39
37
include_directories (${CURL_INCLUDE_DIR} )
40
38
set (PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} )
41
- else (CURL_FOUND)
42
- message (FATAL_ERROR "Could not find the CURL library and development files." )
39
+ else ()
40
+ find_package (CURL 7.58.0 REQUIRED)
41
+ if (CURL_FOUND)
42
+ include_directories (${CURL_INCLUDE_DIR} )
43
+ set (PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} )
44
+ else (CURL_FOUND)
45
+ message (FATAL_ERROR "Could not find the CURL library and development files." )
46
+ endif ()
43
47
endif ()
44
48
45
49
set (SRCS
You can’t perform that action at this time.
0 commit comments