File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ target_include_directories(rlottie
46
46
"${CMAKE_CURRENT_BINARY_DIR} "
47
47
)
48
48
49
- #declare target compilation options
49
+ #declare common target compilation options
50
50
target_compile_options (rlottie
51
51
PUBLIC
52
52
PRIVATE
@@ -56,14 +56,26 @@ target_compile_options(rlottie
56
56
-fno-asynchronous-unwind-tables
57
57
-fno-rtti
58
58
-Wall
59
- -Werror
60
- -Wextra
61
- -Wnon-virtual-dtor
62
- -Woverloaded-virtual
63
- -Wno-unused-parameter
64
59
-fvisibility=hidden
65
60
)
66
61
62
+ #MSVC does not recognize these parameters
63
+ if (NOT WIN32 )
64
+ target_compile_options (rlottie
65
+ PUBLIC
66
+ PRIVATE
67
+ -Werror
68
+ -Wextra
69
+ -Wnon-virtual-dtor
70
+ -Woverloaded-virtual
71
+ -Wno-unused-parameter
72
+ )
73
+ endif ()
74
+
75
+ if (WIN32 AND NOT BUILD_SHARED_LIBS )
76
+ target_compile_definitions (rlottie PUBLIC -DLOT_BUILD=0 )
77
+ endif ()
78
+
67
79
#declare dependancy
68
80
set ( CMAKE_THREAD_PREFER_PTHREAD TRUE )
69
81
find_package ( Threads )
You can’t perform that action at this time.
0 commit comments