forked from bartvdbraak/blender
Cleanup: cmake
This commit is contained in:
parent
284726baec
commit
9ebe44bc9c
@ -378,7 +378,7 @@ endif()
|
||||
|
||||
# By default we want to install to the directory we are compiling our executables
|
||||
# unless specified otherwise, which we currently do not allow
|
||||
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
if(MSVC)
|
||||
set(CMAKE_INSTALL_PREFIX ${EXECUTABLE_OUTPUT_PATH}/\${BUILD_TYPE} CACHE PATH "default install path" FORCE)
|
||||
elseif(APPLE)
|
||||
@ -1154,12 +1154,12 @@ elseif(WIN32)
|
||||
endif()
|
||||
|
||||
# Add each of our libraries to our cmake_prefix_path so find_package() could work
|
||||
FILE(GLOB children RELATIVE ${LIBDIR} ${LIBDIR}/*)
|
||||
FOREACH(child ${children})
|
||||
IF(IS_DIRECTORY ${LIBDIR}/${child})
|
||||
LIST(APPEND CMAKE_PREFIX_PATH ${LIBDIR}/${child})
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
file(GLOB children RELATIVE ${LIBDIR} ${LIBDIR}/*)
|
||||
foreach(child ${children})
|
||||
if(IS_DIRECTORY ${LIBDIR}/${child})
|
||||
list(APPEND CMAKE_PREFIX_PATH ${LIBDIR}/${child})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(ZLIB_INCLUDE_DIRS ${LIBDIR}/zlib/include)
|
||||
set(ZLIB_LIBRARIES ${LIBDIR}/zlib/lib/libz_st.lib)
|
||||
@ -1329,7 +1329,7 @@ elseif(WIN32)
|
||||
set(Boost_USE_MULTITHREADED ON) # suffix -mt
|
||||
set(Boost_USE_STATIC_LIBS ON) # suffix -s
|
||||
find_package(Boost COMPONENTS date_time filesystem thread regex system ${boost_extra_libs})
|
||||
IF(NOT Boost_FOUND)
|
||||
if(NOT Boost_FOUND)
|
||||
message(WARNING "USING HARDCODED boost locations")
|
||||
set(BOOST ${LIBDIR}/boost)
|
||||
set(BOOST_INCLUDE_DIR ${BOOST}/include)
|
||||
|
@ -38,7 +38,9 @@ set(SRC
|
||||
|
||||
if(APPLE)
|
||||
# Cocoa code to read the locale on OSX
|
||||
list(APPEND SRC osx_user_locale.mm)
|
||||
list(APPEND SRC
|
||||
osx_user_locale.mm
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WITH_HEADLESS)
|
||||
|
Loading…
Reference in New Issue
Block a user