File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -150,14 +150,17 @@ if(MINGW OR CYGWIN)
150
150
endif ()
151
151
152
152
include_directories (include )
153
+ include_directories (c:/programming/sfml-2.3/include )
153
154
154
155
if (NOT MULTITHREAD_SUPPORT_ENABLED)
155
156
add_definitions (-DCHAISCRIPT_NO_THREADS -DCHAISCRIPT_NO_THREADS_WARNING)
156
157
endif ()
157
158
158
159
if (CMAKE_HOST_UNIX )
159
160
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Haiku" )
160
- list (APPEND LIBS "dl" )
161
+ if (NOT MINGW AND NOT CYGWIN )
162
+ list (APPEND LIBS "dl" )
163
+ endif ()
161
164
endif ()
162
165
163
166
if (MULTITHREAD_SUPPORT_ENABLED)
@@ -182,7 +185,7 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LINKER_FLAGS}")
182
185
set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${LINKER_FLAGS} " )
183
186
184
187
add_executable (game_engine main.cpp game.cpp game_event.cpp map.cpp chaiscript_stdlib.cpp chaiscript_bindings.cpp chaiscript_creator.cpp)
185
- target_link_libraries (game_engine ${SFML_GRAPHICS} ${SFML_WINDOW} ${SFML_SYSTEM} dl )
188
+ target_link_libraries (game_engine ${SFML_GRAPHICS} ${SFML_WINDOW} ${SFML_SYSTEM} ${LIBS} )
186
189
file (COPY resources DESTINATION ${CMAKE_BINARY_DIR} )
187
190
file (COPY main.chai DESTINATION ${CMAKE_BINARY_DIR} )
188
191
You can’t perform that action at this time.
0 commit comments