shithub: cstory

Download patch

ref: e866d7bd9b15bb07fc3485712ff50a4304a1f3d6
parent: c63646e798ae154994818febfe9b9dc51ce9c928
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 10 21:15:50 EDT 2019

cmake tweaks

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -307,7 +307,7 @@
 	include(CheckIncludeFiles)
 	check_include_files(stdint.h STDINT_EXISTS)
 	if (NOT STDINT_EXISTS)
-		include_directories("${CMAKE_CURRENT_SOURCE_DIR}/msvc/msvc2003")
+		target_include_directories(CSE2 PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/msvc/msvc2003")
 	endif()
 else()
 	# Find dependencies
@@ -336,6 +336,6 @@
 	endif()
 endif()
 
-target_include_directories(CSE2 PUBLIC ${SDL2_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS})
-target_compile_options(CSE2 PUBLIC ${SDL2_CFLAGS_OTHER} ${FREETYPE_CFLAGS_OTHER})
+target_include_directories(CSE2 PRIVATE ${SDL2_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS})
+target_compile_options(CSE2 PRIVATE ${SDL2_CFLAGS_OTHER} ${FREETYPE_CFLAGS_OTHER})
 target_link_libraries(CSE2 ${SDL2_LIBRARIES} ${FREETYPE_LIBRARIES})