File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ option(Idefix_DEBUG "Enable Idefix debug features (makes the code very slow)" OF
1616option (Idefix_RUNTIME_CHECKS "Enable runtime sanity checks" OFF )
1717option (Idefix_WERROR "Treat compiler warnings as errors" OFF )
1818option (Idefix_PYTHON "Enable python bindings (requires pybind11)" OFF )
19- Option (Idefix_PROBLEM_DIR "Define the directory of the case to build for." ${ PROJECT_BINARY_DIR } )
19+ set (Idefix_PROBLEM_DIR "${ CMAKE_BINARY_DIR } " CACHE STRING " Define the directory of the case to build for." )
2020set (Idefix_CXX_FLAGS "" CACHE STRING "Additional compiler/linker flag" )
2121set (Idefix_DEFS "definitions.hpp" CACHE FILEPATH "Problem definition header file" )
2222option (Idefix_CUSTOM_EOS "Use custom equation of state" OFF )
@@ -76,7 +76,7 @@ add_executable(idefix)
7676add_subdirectory (src build )
7777
7878# make absolute
79- get_filename_component ( Idefix_PROBLEM_DIR_ABS " ${Idefix_PROBLEM_DIR} " REALPATH BASE_DIR " ${PROJECT_BINARY_DIR } " )
79+ file ( REAL_PATH ${Idefix_PROBLEM_DIR} Idefix_PROBLEM_DIR_ABS BASE_DIRECTORY ${PROJECT_BINARY_DIR } )
8080
8181if (EXISTS ${Idefix_PROBLEM_DIR_ABS} /setup.cpp)
8282 target_sources (idefix PUBLIC ${Idefix_PROBLEM_DIR_ABS} /setup.cpp )
You can’t perform that action at this time.
0 commit comments