Commit 7954f5ae authored by Bastian Krayer's avatar Bastian Krayer
Browse files

updated cmake

parent e257839a
......@@ -151,7 +151,7 @@ set(ASSIMP_INCLUDE_DIRS ${ASSIMP_INCLUDE_DIR})
if(ASSIMP_FOUND AND NOT TARGET Assimp::Assimp)
add_library(Assimp::Assimp INTERFACE IMPORTED)
IF(NOT ASSIMP_INTERFACE_LIBRARY)
SET(ASSIMP_INTERFACE_LIBRARY ${ASSIMP_LIBRARIES})
SET(ASSIMP_INTERFACE_LIBRARY ${ASSIMP_LIBRARY})
ENDIF()
set_target_properties(Assimp::Assimp PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${ASSIMP_INCLUDE_DIR}"
......
......@@ -139,7 +139,7 @@ if(GLFW3_FOUND AND NOT TARGET GLFW3::glfw3)
add_library(GLFW3::glfw3 INTERFACE IMPORTED)
IF(NOT GLFW3_INTERFACE_LIBRARY)
SET(GLFW3_INTERFACE_LIBRARY ${GLFW3_LIBRARIES})
SET(GLFW3_INTERFACE_LIBRARY ${GLFW3_LIBRARY})
ENDIF()
set_target_properties(GLFW3::glfw3 PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${GLFW3_INCLUDE_DIR}"
......
......@@ -70,6 +70,7 @@ MACRO(CreateExecutable executableName)
target_compile_options(${executableName} PUBLIC
"$<$<CONFIG:Debug>:/bigobj>"
)
elseif(APPLE) # -Wa,-mbig-obj does not exist in clang but supposedly it just works on Mac anyways
else ()
target_compile_options(${executableName} PUBLIC
"$<$<CONFIG:Debug>:-Wa,-mbig-obj>"
......@@ -129,6 +130,7 @@ MACRO(CreateLibrary libraryName IS_INTERFACE)
target_compile_options(${libraryName} PUBLIC
"$<$<CONFIG:Debug>:/bigobj>"
)
elseif(APPLE) # -Wa,-mbig-obj does not exist in clang but supposedly it just works on Mac anyways
else ()
target_compile_options(${libraryName} PUBLIC
"$<$<CONFIG:Debug>:-Wa,-mbig-obj>"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment