Skip to content

Commit

Permalink
CMake: Set CMAKE_LIBRARY_ARCHITECTURE
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jun 23, 2018
1 parent e7ce64c commit 99a4dd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ project(ArxWindows)

cmake_minimum_required(VERSION 2.8.5)

# Change CMAKE_LIBRARY_ARCHITECTURE to ensure the right libs are used
if(CMAKE_CL_64)
set(CMAKE_LIBRARY_ARCHITECTURE "x64")
else()
set(CMAKE_LIBRARY_ARCHITECTURE "x86")
endif()

set(libs "${CMAKE_CURRENT_LIST_DIR}/libs")
set(CMAKE_PREFIX_PATH
"${libs}/boost"
Expand Down

0 comments on commit 99a4dd4

Please sign in to comment.