Skip to content

Commit

Permalink
cmake: only set our install prefix if user didn't set one
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Jan 17, 2025
1 parent da9a815 commit 18a7f5e
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 @@ -49,7 +49,9 @@ option(BUILD_SERVER "Build server dll" ON)
option(LTO "Enable interprocedural optimization" OFF)
option(POLLY "Enable pollyhedral optimization" OFF)

set(CMAKE_INSTALL_PREFIX "")
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "")
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 4 OR
((WIN32 OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
Expand Down

0 comments on commit 18a7f5e

Please sign in to comment.