Skip to content

Commit

Permalink
Add definition
Browse files Browse the repository at this point in the history
  • Loading branch information
loumalouomega authored Nov 25, 2024
1 parent 27ae59b commit 8d4c63f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,10 @@ endif(KRATOS_BUILD_TESTING MATCHES ON)

# Benchmarking
if(KRATOS_BUILD_BENCHMARK MATCHES ON)
# retrieve a copy of the current directory's `COMPILE_OPTIONS`
# Add the definitions if required
ADD_DEFINITIONS(-DKRATOS_BUILD_BENCHMARKING)

# Retrieve a copy of the current directory's `COMPILE_OPTIONS`
get_directory_property(kratos_root_compile_options COMPILE_OPTIONS)

# Disable warnings (needed by centos. We should all love centos, it clearly needs some affection)
Expand All @@ -342,7 +345,7 @@ if(KRATOS_BUILD_BENCHMARK MATCHES ON)
set(CMAKE_INSTALL_BINDIR "libs") # In Win default dir is bin
FetchContent_MakeAvailable(googlebenchmark)

# restore the current directory's old `COMPILE_OPTIONS`
# Restore the current directory's old `COMPILE_OPTIONS`
set_directory_properties(PROPERTIES COMPILE_OPTIONS "${kratos_root_compile_options}")
endif(KRATOS_BUILD_BENCHMARK MATCHES ON)

Expand Down

0 comments on commit 8d4c63f

Please sign in to comment.