Skip to content

Commit d0185eb

Browse files
committed
Cache the CMAKE_CXX_FLAGS variable so that reconfiguring does not loss changes to these variables.
1 parent 6029ced commit d0185eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ endforeach()
194194
##########################
195195
# wrap up
196196
##########################
197+
198+
# Force cache refresh for compile flags
199+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "C compile flags" FORCE)
200+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE STRING "C++ compile flags" FORCE)
201+
197202
CONFIGURE_FILE(
198203
${PROJECT_SOURCE_DIR}/src/TiledArray/config.h.in
199204
${PROJECT_BINARY_DIR}/src/TiledArray/config.h

0 commit comments

Comments
 (0)