We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0658f commit b8e425bCopy full SHA for b8e425b
1 file changed
CMakeLists.txt
@@ -84,11 +84,6 @@ else()
84
endif()
85
86
87
-include_directories("include")
88
-
89
-set(CMAKE_CXX_STANDARD 20)
90
-set(CMAKE_CXX_STANDARD_REQUIRED True)
91
92
message(CHECK_START "Checking if LTO is supported")
93
include(CheckIPOSupported)
94
check_ipo_supported(RESULT enable_lto)
@@ -157,6 +152,12 @@ if(NOT TARGET PNG::PNG)
157
152
158
153
159
154
## The actual stuff.
155
+# Any compiler options that shouldn't apply to our dependencies go here.
156
+
+include_directories("include")
+set(CMAKE_CXX_STANDARD 20)
160
+set(CMAKE_CXX_STANDARD_REQUIRED True)
161
162
add_subdirectory(src)
163
add_subdirectory(test)
0 commit comments