Skip to content
Snippets Groups Projects
Commit 7d26d4d7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

make sure we have either Linux or Apple or Win32

parent 6b7896d1
No related branches found
No related tags found
1 merge request!514CMake: minor improvements
Pipeline #51427 passed
...@@ -111,14 +111,19 @@ include(BornAgain/MakeLib) # fct MakeLib ...@@ -111,14 +111,19 @@ include(BornAgain/MakeLib) # fct MakeLib
include(BornAgain/Directories) include(BornAgain/Directories)
if(CMAKE_SYSTEM_NAME MATCHES Linux) if(UNIX)
include(BornAgain/Linux) if(CMAKE_SYSTEM_NAME MATCHES Linux)
include(BornAgain/NixInstall) include(BornAgain/Linux)
elseif(APPLE) elseif(APPLE)
include(BornAgain/MacOS) include(BornAgain/MacOS)
else()
message(FATAL_ERROR "Operating system ${CMAKE_SYSTEM_NAME} not supported")
endif()
include(BornAgain/NixInstall) include(BornAgain/NixInstall)
elseif(WIN32) elseif(WIN32)
include(BornAgain/Windows) include(BornAgain/Windows)
else()
message(FATAL_ERROR "Operating system ${CMAKE_SYSTEM_NAME} is neither UNIX nor WIN32")
endif() endif()
include(BornAgain/Compiler) include(BornAgain/Compiler)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment