Skip to content

Commit d9c6a21

Browse files
committed
Set MSVC_RUNTIME_LIBRARY only for MSVC
1 parent 2d9aebc commit d9c6a21

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ endif()
112112

113113
foreach(lib ${TREELITE_TARGETS})
114114
set_output_directory(${lib} ${PROJECT_BINARY_DIR})
115-
set_target_properties(${lib} PROPERTIES
116-
MSVC_RUNTIME_LIBRARY "${Treelite_MSVC_RUNTIME_LIBRARY}")
115+
if(MSVC)
116+
set_target_properties(${lib} PROPERTIES
117+
MSVC_RUNTIME_LIBRARY "${Treelite_MSVC_RUNTIME_LIBRARY}")
118+
endif()
117119
endforeach()
118120

119121
# Export install targets

0 commit comments

Comments
 (0)