Skip to content

Commit 1dc6161

Browse files
committed
Do not cache CMAKE_CXX_STANDARD
This avoid stale values in the cache from blocking updates (eg c++17->20) Signed-off-by: Matt Liberty <[email protected]>
1 parent 54e7b7c commit 1dc6161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ set(OPENROAD_HOME ${PROJECT_SOURCE_DIR})
5959
set(OPENROAD_SHARE ${CMAKE_INSTALL_PREFIX}/share/openroad)
6060

6161
# Default c++ standard used unless otherwise specified in target_compile_features.
62-
set(CMAKE_CXX_STANDARD 20 CACHE STRING "the C++ standard to use for this project")
62+
set(CMAKE_CXX_STANDARD 20)
6363
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6464
# Disable compiler specific extensions like gnu++11.
6565
set(CMAKE_CXX_EXTENSIONS OFF)

0 commit comments

Comments
 (0)