Skip to content

Commit ec657d0

Browse files
committed
revert change
1 parent 46915bc commit ec657d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ include(CPack)
5151
set(CPACK_PACKAGE_FILE_NAME lpython-${LFORTRAN_VERSION}-${CMAKE_SYSTEM_NAME})
5252

5353

54-
set(CMAKE_CXX_STANDARD 17
55-
CACHE STRING "C++ standard" FORCE)
54+
if (NOT CMAKE_CXX_STANDARD)
55+
set(CMAKE_CXX_STANDARD 17
56+
CACHE STRING "C++ standard" FORCE)
57+
endif ()
5658

5759
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
5860

0 commit comments

Comments
 (0)