diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b9860b8a..8dbbb6d00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,10 +65,7 @@ else() endif(MSVC_VERSION) include(cmake/solaris.cmake) -include(cmake/unix.cmake) include(cmake/win32.cmake) -# try detecting the target arch and set the flags needed here -message(STATUS "${CMAKE_SYSTEM_VERSION}") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") @@ -76,6 +73,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") include(MacroEnsureOutOfSourceBuild) macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out-of-source build. Create a build directory and run 'cmake ${CMAKE_SOURCE_DIR} [options]'.") +include(cmake/unix.cmake) + if(NOT WIN32) if(IOS OR ANDROID) set(NON_PC_TARGET ON)