Skip to content

Commit

Permalink
build: move add_subdirectory(src) down
Browse files Browse the repository at this point in the history
so we can have access to the Seastar_PRIVATE_CXX_FLAGS when
defining the `seastar-module` target. we will do this in another
commit.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed May 19, 2024
1 parent a7fb8ff commit 4054d81
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -877,13 +877,6 @@ endif ()
set( MEMORYCHECK_COMMAND_OPTIONS "--error-exitcode=1 --leak-check=no --trace-children=yes" )
include (CTest)

if (Seastar_MODULE)
if (POLICY CMP0155)
cmake_policy (SET CMP0155 NEW)
endif ()
include (CxxModulesRules)
add_subdirectory (src)
endif ()
#
# We want asserts enabled on all modes, but cmake defaults to passing
# -DNDEBUG in some modes. We add -UNDEBUG to our private options to
Expand Down Expand Up @@ -1184,6 +1177,14 @@ if (Seastar_INSTALL OR Seastar_TESTING)

endif ()

if (Seastar_MODULE)
if (POLICY CMP0155)
cmake_policy (SET CMP0155 NEW)
endif ()
include (CxxModulesRules)
add_subdirectory (src)
endif ()

#
# The tests themselves.
#
Expand Down

0 comments on commit 4054d81

Please sign in to comment.