You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
option(CPM_USE_LOCAL_PACKAGES"Try `find_package` before downloading dependencies"ON)
17
+
include(cmake/CPM.cmake)
13
18
14
-
#Is this a master project or a subdirectory of another project
19
+
#Check if this is a master project or a subdirectory of another project
15
20
if (${CMAKE_CURRENT_SOURCE_DIR}STREQUAL${CMAKE_SOURCE_DIR})
16
21
set(MASTER_PROJECTON)
17
22
else ()
@@ -34,15 +39,16 @@ option(BUILD_HIGH_RESOLUTION_WORLD_MAP "Compile the high resolution maps for geo
34
39
option(BUILD_FOR_DOCUMENTATION_IMAGES"Bypass wait() commands and save figures as .svg at destruction"OFF)
35
40
option(BUILD_EXPERIMENTAL_OPENGL_BACKEND"Compile target with the experimental OpenGL backend"OFF)
36
41
option(OPTIMIZE_RELEASE_CODE_BY_DEFAULT"Turn on optimization flags by default in Release"OFF)
42
+
option(BUILD_WITH_PEDANTIC_WARNINGS"Use pedantic warnings. This is useful for developers because many of these warnings will be in continuous integration anyway."OFF)
43
+
option(BUILD_WITH_UTF8"Accept utf-8 in MSVC by default."ON)
44
+
37
45
if (OPTIMIZE_RELEASE_CODE_BY_DEFAULT)
38
46
if (MSVC)
39
47
set(CMAKE_CXX_FLAGS_RELEASE"/O2")
40
48
else ()
41
49
set(CMAKE_CXX_FLAGS_RELEASE"-O2")
42
50
endif ()
43
51
endif ()
44
-
option(BUILD_WITH_PEDANTIC_WARNINGS"Use pedantic warnings. This is useful for developers because many of these warnings will be in continuous integration anyway."OFF)
45
-
option(BUILD_WITH_UTF8"Accept utf-8 in MSVC by default."ON)
46
52
47
53
# Where to find dependencies
48
54
option(WITH_SYSTEM_CIMG"Use system-provided CImg.h instead of bundled"OFF)
0 commit comments