Skip to content

Commit

Permalink
fix: add ON_COMPILER_CLANG for clang compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 16, 2021
1 parent 7540aaf commit 3d8e3b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Linux specific

# Linux compiler definitions
target_compile_definitions(opennurbs PRIVATE ON_RUNTIME_LINUX
ON_CLANG_CONSTRUCTOR_BUG)
target_compile_definitions(opennurbs PRIVATE ON_RUNTIME_LINUX)
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
target_compile_definitions(opennurbs PRIVATE ON_COMPILER_CLANG)
endif()

# Dependencies
Expand Down

0 comments on commit 3d8e3b8

Please sign in to comment.