Skip to content

Commit

Permalink
Set install directory only if not previously defined (WISDEM#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind authored Feb 10, 2021
1 parent e8beb58 commit 8eb65d9
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 @@ -53,4 +53,6 @@ install(TARGETS discon
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install")
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install")
endif()

0 comments on commit 8eb65d9

Please sign in to comment.