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
9 changes: 9 additions & 0 deletions cmake/modules/SetUpWindows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")

elseif(MSVC)

if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# Change the default install from "C:/Program Files/${PROJECT_NAME}" to
# "C:/${PROJECT_NAME}-${ROOT_MAJOR_VERSION}-${ROOT_MINOR_VERSION}-${ROOT_PATCH_VERSION}"
# to prevent having (unsupported) spaces in the install PATH
set (CMAKE_INSTALL_PREFIX "C:/${PROJECT_NAME}-${ROOT_MAJOR_VERSION}-${ROOT_MINOR_VERSION}-${ROOT_PATCH_VERSION}"
CACHE PATH "default install path" FORCE)
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(ARCH "-wd4267")
set(ROOT_ARCHITECTURE win64)
Expand Down
Loading