We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af452f commit 03adb8dCopy full SHA for 03adb8d
1 file changed
src/tests/loader_test/CMakeLists.txt
@@ -42,6 +42,9 @@ if(VulkanHeaders_FOUND)
42
)
43
endif()
44
45
+if(BUILD_WITHOUT_STD_FILESYSTEM)
46
+ target_compile_definitions(loader_test PRIVATE DISABLE_STD_FILESYSTEM)
47
+endif()
48
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
49
if(MSVC)
50
target_compile_definitions(loader_test PRIVATE _CRT_SECURE_NO_WARNINGS)
@@ -53,7 +56,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
53
56
loader_test PRIVATE -Wall -Wno-unused-function -Wno-format-truncation
54
57
55
58
- target_link_libraries(loader_test -lstdc++fs openxr_loader m -lpthread)
59
+ target_link_libraries(loader_test openxr_loader m -lpthread)
60
+ if(NOT BUILD_WITHOUT_STD_FILESYSTEM)
61
+ target_link_libraries(loader_test stdc++fs)
62
+ endif()
63
else()
64
message(FATAL_ERROR "Unsupported Platform")
65
0 commit comments