Skip to content

Commit

Permalink
CMake: Only set install directory if not already set.
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidWallOfCode committed Nov 15, 2023
1 parent c2c13c9 commit a79bc66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.14)

project("libSWOC")
include(CMakeDependentOption)
set(CMAKE_INSTALL_PREFIX ${CMAKE_HOME_DIRECTORY}/image)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX ${CMAKE_HOME_DIRECTORY}/image)
endif ()

cmake_dependent_option(LIBSWOC_TEST
"Enable generation of libswoc test targets" ON
Expand Down

0 comments on commit a79bc66

Please sign in to comment.