Skip to content

Commit cb8f9e6

Browse files
committedFeb 6, 2025
Fix for Linux?
1 parent f53de47 commit cb8f9e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ source_group("MathLib/Guts" FILES ${MATHLIB_GUTS})
1313

1414
set_property(SOURCE "ml.hlsli" PROPERTY VS_SETTINGS "ExcludedFromBuild=true")
1515

16-
add_library(MathLib INTERFACE ${MATHLIB_H} ${MATHLIB_GUTS})
16+
if(WIN32)
17+
add_library(MathLib INTERFACE ${MATHLIB_H} ${MATHLIB_GUTS})
18+
else()
19+
add_library(MathLib INTERFACE)
20+
endif()
21+
1722
target_include_directories(MathLib INTERFACE .)
1823
set_property(TARGET MathLib PROPERTY FOLDER "MathLib")
1924

0 commit comments

Comments
 (0)