File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ project(CSFML VERSION 2.5.1)
18
18
# include the configuration file
19
19
include (${PROJECT_SOURCE_DIR} /cmake/Config.cmake )
20
20
21
- # add the CSFML header path
22
- include_directories (${PROJECT_SOURCE_DIR} /include )
23
-
24
21
# add an option for choosing the build type (shared or static)
25
22
csfml_set_option (BUILD_SHARED_LIBS TRUE BOOL "TRUE to build CSFML as shared libraries, FALSE to build it as static libraries" )
26
23
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ macro(csfml_add_library target)
12
12
# create the target
13
13
add_library (${target} ${THIS_SOURCES} )
14
14
15
+ # add the CSFML header path
16
+ target_include_directories (${target} PUBLIC ${PROJECT_SOURCE_DIR} /include )
17
+
15
18
# define the export symbol of the module
16
19
string (REPLACE "-" "_" NAME_UPPER "${target} " )
17
20
string (TOUPPER "${NAME_UPPER} " NAME_UPPER )
You can’t perform that action at this time.
0 commit comments