Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Modelica/Resources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ set(MODELICA_UTILITIES_INCLUDE_DIR "${MODELICA_RESOURCES_DIR}/C-Sources")
include(BuildProjects/CMake/Modelica_platform.cmake)
include(BuildProjects/CMake/Modelica_utilities.cmake)

set(
CMAKE_INSTALL_PREFIX "${MODELICA_RESOURCES_DIR}"
CACHE PATH
"Library installation prefix path (don't change)" FORCE
)
# Do not override CMAKE_INSTALL_PREFIX if it was set by the user. CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is automatically provided by cmake.
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(
CMAKE_INSTALL_PREFIX "${MODELICA_RESOURCES_DIR}"
CACHE PATH
"Library installation prefix path (don't change)" FORCE
)
endif()

get_modelica_platform_name_with_compiler_version(MODELICA_PLATFORM_NAME)
set(
Expand Down