Skip to content

Commit b55f01d

Browse files
committed
FIXED: building on windows clang and compile flag issues
1 parent 5e96133 commit b55f01d

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

CMakeLists.txt

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ target_include_directories(rltk PUBLIC
3333
)
3434
target_link_libraries(rltk PUBLIC ${ZLIB_LIBRARIES} ${SFML_LIBRARIES})
3535
if(NOT MSVC) # Why was this here? I exempted the wierd linker flags
36-
target_compile_options(rltk "-O3 -Wall -Wpedantic -march=native -mtune=native -g")
36+
target_compile_options(rltk PUBLIC -O3 -Wall -Wpedantic -march=native -mtune=native -g)
37+
else()
38+
target_compile_options(rltk PUBLIC /W3 /EHsc)
3739
endif()
3840

3941
install (TARGETS rltk
@@ -42,33 +44,33 @@ install (TARGETS rltk
4244
RUNTIME DESTINATION bin)
4345

4446
set(RLTK_HEADERS
45-
astar.hpp
46-
colors.hpp
47-
color_t.hpp
48-
ecs.hpp
49-
ecs_impl.hpp
50-
filesystem.hpp
51-
font_manager.hpp
52-
fsa.hpp
53-
geometry.hpp
54-
gui.hpp
55-
gui_control_t.hpp
56-
input_handler.hpp
57-
layer_t.hpp
58-
path_finding.hpp
59-
perlin_noise.hpp
60-
rexspeeder.hpp
61-
rltk.hpp
62-
rng.hpp
63-
scaling.hpp
64-
serialization_utils.hpp
65-
texture.hpp
66-
texture_resources.hpp
67-
vchar.hpp
68-
virtual_terminal.hpp
69-
virtual_terminal_sparse.hpp
70-
visibility.hpp
71-
xml.hpp)
47+
rltk/astar.hpp
48+
rltk/colors.hpp
49+
rltk/color_t.hpp
50+
rltk/ecs.hpp
51+
rltk/ecs_impl.hpp
52+
rltk/filesystem.hpp
53+
rltk/font_manager.hpp
54+
rltk/fsa.hpp
55+
rltk/geometry.hpp
56+
rltk/gui.hpp
57+
rltk/gui_control_t.hpp
58+
rltk/input_handler.hpp
59+
rltk/layer_t.hpp
60+
rltk/path_finding.hpp
61+
rltk/perlin_noise.hpp
62+
rltk/rexspeeder.hpp
63+
rltk/rltk.hpp
64+
rltk/rng.hpp
65+
rltk/scaling.hpp
66+
rltk/serialization_utils.hpp
67+
rltk/texture.hpp
68+
rltk/texture_resources.hpp
69+
rltk/vchar.hpp
70+
rltk/virtual_terminal.hpp
71+
rltk/virtual_terminal_sparse.hpp
72+
rltk/visibility.hpp
73+
rltk/xml.hpp)
7274

7375
install(FILES ${RLTK_HEADERS}
7476
DESTINATION "include/rltk"

0 commit comments

Comments
 (0)