Skip to content

Commit b8e425b

Browse files
committed
Avoid passing irrelevant flags to our deps
1 parent 6b0658f commit b8e425b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ else()
8484
endif()
8585
endif()
8686

87-
include_directories("include")
88-
89-
set(CMAKE_CXX_STANDARD 20)
90-
set(CMAKE_CXX_STANDARD_REQUIRED True)
91-
9287
message(CHECK_START "Checking if LTO is supported")
9388
include(CheckIPOSupported)
9489
check_ipo_supported(RESULT enable_lto)
@@ -157,6 +152,12 @@ if(NOT TARGET PNG::PNG)
157152
endif()
158153

159154
## The actual stuff.
155+
# Any compiler options that shouldn't apply to our dependencies go here.
156+
157+
include_directories("include")
158+
159+
set(CMAKE_CXX_STANDARD 20)
160+
set(CMAKE_CXX_STANDARD_REQUIRED True)
160161

161162
add_subdirectory(src)
162163
add_subdirectory(test)

0 commit comments

Comments
 (0)