File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,14 @@ set(MODELICA_UTILITIES_INCLUDE_DIR "${MODELICA_RESOURCES_DIR}/C-Sources")
1717include (BuildProjects/CMake/Modelica_platform.cmake)
1818include (BuildProjects/CMake/Modelica_utilities.cmake)
1919
20- set (
21- CMAKE_INSTALL_PREFIX "${MODELICA_RESOURCES_DIR} "
22- CACHE PATH
23- "Library installation prefix path (don't change)" FORCE
24- )
20+ # Do not override CMAKE_INSTALL_PREFIX if it was set by the user. CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is automatically provided by cmake.
21+ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
22+ set (
23+ CMAKE_INSTALL_PREFIX "${MODELICA_RESOURCES_DIR} "
24+ CACHE PATH
25+ "Library installation prefix path (don't change)" FORCE
26+ )
27+ endif ()
2528
2629get_modelica_platform_name_with_compiler_version(MODELICA_PLATFORM_NAME)
2730set (
You can’t perform that action at this time.
0 commit comments