Skip to content
Snippets Groups Projects
Commit 55ac669d authored by Daniel Wielanek's avatar Daniel Wielanek
Browse files

trying to set path to compilers by hand

parent 27522c4c
No related branches found
No related tags found
No related merge requests found
Pipeline #16526 failed
......@@ -18,6 +18,9 @@ variables:
- export ROOTSYS=$SIMPATH
- export PATH=$SIMPATH/bin:$PATH
- export LD_LIBRARY_PATH=$SIMPATH/lib:$SIMPATH/lib/root:$LD_LIBRARY_PATH
- export CXX=`fairsoft-config --cxx`
- export CC=`fairsoft-config --cc`
- export FC=`fairsoft-config --f77`
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=../inst ..
......
......@@ -54,6 +54,12 @@ if(NOT DEFINED NICAFEMTO_SUBDIR_BUILD)
EndIf()
#target_compile_features(${TARGET_NAME} PRIVATE cxx_std_17)
If(NOT _HAS_CXX17_FLAG)
Message(FATAL_ERROR "The used C++ compiler (${CMAKE_CXX_COMPILER}) does not support C++17. NicaFemto can only be compiled with compilers supporting C++11. Please install such an compiler.")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
EndIf()
Set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib")
......
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