Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Jan 19, 2024
1 parent d64390a commit 2d511af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(NOT CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
target_compile_options(Osiris PRIVATE -Wall)
target_compile_options(Osiris PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wall>)
target_link_options(Osiris PRIVATE LINKER:--no-undefined)
endif()

Expand All @@ -34,7 +34,7 @@ endif()

if(CMAKE_BUILD_TYPE STREQUAL "Release")
if(UNIX)
target_compile_options(Osiris PRIVATE -fno-stack-protector -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables)
target_compile_options(Osiris PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-fno-stack-protector -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables>)
target_link_options(Osiris PRIVATE -nostdlib)
target_link_libraries(Osiris PRIVATE c)
endif()
Expand Down

0 comments on commit 2d511af

Please sign in to comment.