Skip to content

Commit

Permalink
Separate linker flags from compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
coditva authored Mar 27, 2018
1 parent 449ca9a commit 58b1dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ set (PROJECT_SOURCE_FLAGS "-ansi -std=c99 -Wall")
set (CMAKE_C_FLAGS " \
${PROJECT_DEBUG_FLAGS} \
${PROJECT_SOURCE_FLAGS} \
${PROJECT_LINKER_FLAGS} \
")
set (CMAKE_EXE_LINKER_FLAGS ${PROJECT_LINKER_FLAGS})

# Find and add external libraries
find_library (NCURSES_LIB ncurses)
Expand Down
4 changes: 2 additions & 2 deletions maps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
set (PROJECT_DEBUG_FLAGS "-g")
set (PROJECT_LINKER_FLAGS "-shared")
set (PROJECT_SOURCE_FLAGS "-fPIC -ansi -std=c99 -pedantic -Wall")
set (PROJECT_SOURCE_FLAGS "-fPIC -std=c99 -pedantic -Wall")
set (CMAKE_C_FLAGS " \
${PROJECT_DEBUG_FLAGS} \
${PROJECT_SOURCE_FLAGS} \
${PROJECT_LINKER_FLAGS} \
")
set (CMAKE_EXE_LINKER_FLAGS ${PROJECT_LINKER_FLAGS})

# Set the output path
set (EXECUTABLE_OUTPUT_PATH ${LIBRARY_OUTPUT_PATH}/maps)
Expand Down

0 comments on commit 58b1dcb

Please sign in to comment.