Commit 4f9ca71b authored by Bastian Krayer's avatar Bastian Krayer
Browse files

removed big obj options

parent 9606b0f2
......@@ -66,16 +66,16 @@ MACRO(CreateExecutable executableName)
)
target_compile_features(${executableName} PUBLIC cxx_std_17)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
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>"
)
endif ()
# if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# 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>"
# )
# endif ()
add_dependencies(${executableName} COPY_RUNTIME_FILES)
......@@ -126,17 +126,17 @@ MACRO(CreateLibrary libraryName IS_INTERFACE)
)
target_compile_features(${libraryName} PUBLIC cxx_std_17)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
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>"
)
endif ()
# if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# 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>"
# )
# endif ()
ELSEIF (HEADER)
SET(${IS_INTERFACE} TRUE)
......
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