Skip to content

Commit

Permalink
Define CMAKE_SYSTEM_NAME in script mode
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Sep 10, 2023
1 parent df6396b commit 90cd254
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devel-tools/build_test_library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ else()
get_filename_component(COLVARS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
endif()

if(NOT DEFINED CMAKE_SYSTEM_NAME)
set(CMAKE_SYSTEM_NAME ${CMAKE_HOST_SYSTEM_NAME})
endif()

set(COLVARS_LEPTON ON)
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
Expand All @@ -25,7 +29,7 @@ if(NOT DEFINED COLVARS_TCL)
set(COLVARS_TCL ON)
endif()

if(DEFINED CMAKE_SYSTEM_NAME AND COLVARS_TCL)
if(DEFINED COLVARS_TCL)

# If available, use pre-downloaded OS-specific TCL libraries

Expand Down

0 comments on commit 90cd254

Please sign in to comment.