Skip to content
Snippets Groups Projects
Commit 5e9bb789 authored by Marco Biasini's avatar Marco Biasini
Browse files

added shortcuts to change compiler from the command line

parent 8376b088
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,19 @@ option(STATIC_PROPERTY_WORKAROUND "workaround for static property bug with some ...@@ -30,6 +30,19 @@ option(STATIC_PROPERTY_WORKAROUND "workaround for static property bug with some
option(DEPLOYMENT "switch on deployment settings" OFF) option(DEPLOYMENT "switch on deployment settings" OFF)
option(COMPILE_TESTS "wheter unit tests should be compiled by default" OFF) option(COMPILE_TESTS "wheter unit tests should be compiled by default" OFF)
if (CXX)
set(CMAKE_CXX_COMPILER ${CXX})
endif()
if (CC)
set(CMAKE_C_COMPILER ${CC})
endif()
if (FORTRAN_COMPILER)
set(CMAKE_FORTRAN_COMPILER ${FORTRAN_COMPILER})
endif()
if (PREFIX) if (PREFIX)
set(CMAKE_INSTALL_PREFIX ${PREFIX}) set(CMAKE_INSTALL_PREFIX ${PREFIX})
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment