Skip to content
Snippets Groups Projects
Unverified Commit 6b67937e authored by Joris Vaillant's avatar Joris Vaillant
Browse files

cmake: Add NOMINMAX definititon when building coal on Windows

parent cf759661
No related branches found
No related tags found
No related merge requests found
......@@ -200,9 +200,14 @@ if(UNIX)
set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "${${PROJECT_NAME}_INSTALL_RPATH}")
endif()
IF(MSVC)
target_compile_options(${PROJECT_NAME} PUBLIC "/bigobj")
ENDIF()
cxx_flags_by_compiler_frontend(
MSVC "/bigobj"
OUTPUT PUBLIC_OPTIONS
FILTER)
target_compile_options(${PROJECT_NAME} PUBLIC ${PUBLIC_OPTIONS})
cxx_flags_by_compiler_frontend(MSVC "NOMINMAX" OUTPUT PUBLIC_DEFINITIONS)
target_compile_definitions(${PROJECT_NAME} INTERFACE ${PUBLIC_DEFINITIONS})
# IDE sources and headers sorting
ADD_SOURCE_GROUP(${LIBRARY_NAME}_SOURCES)
......
......@@ -13,9 +13,8 @@ function(add_coal_test test_name source)
Boost::filesystem
${utility_target}
)
IF(NOT WIN32)
target_compile_options(${target_name} PRIVATE "-Wno-c99-extensions")
ENDIF()
cxx_flags_by_compiler_frontend(GNU "-Wno-c99-extensions" OUTPUT PRIVATE_OPTIONS)
target_compile_options(${target_name} PRIVATE ${PRIVATE_OPTIONS})
if(COAL_HAS_QHULL)
target_compile_options(${target_name} PRIVATE -DCOAL_HAS_QHULL)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment