We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ab7332 commit 2954beaCopy full SHA for 2954bea
1 file changed
CMakeLists.txt
@@ -33,9 +33,18 @@ set_target_properties(_lbug
33
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/ladybug"
34
ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/ladybug")
35
36
-target_link_libraries(_lbug
37
- PRIVATE
38
- lbug)
+if(LBUG_API_USE_PRECOMPILED_LIB)
+ if(NOT LBUG_API_PRECOMPILED_LIB_PATH)
+ message(FATAL_ERROR "LBUG_API_PRECOMPILED_LIB_PATH must be set when LBUG_API_USE_PRECOMPILED_LIB is enabled.")
39
+ endif()
40
+ target_link_libraries(_lbug
41
+ PRIVATE
42
+ ${LBUG_API_PRECOMPILED_LIB_PATH})
43
+else()
44
45
46
+ lbug)
47
+endif()
48
49
target_include_directories(
50
_lbug
0 commit comments