Skip to content

Commit

Permalink
Fixed bug due to which pru-gcc was called with incorrect include path…
Browse files Browse the repository at this point in the history
…, changed set_target_properties with target_compile_definitions
  • Loading branch information
VedantParanjape committed Aug 18, 2020
1 parent 7208ee3 commit 3fd348d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ADD_FLEX_BISON_DEPENDENCY(lexer parser)

# Add executables
add_executable(${PROJECT_NAME}-${CMAKE_PROJECT_VERSION} ${PROJECT_FILES} ${BISON_parser_OUTPUTS} ${FLEX_lexer_OUTPUTS})
set_target_properties(${PROJECT_NAME}-${CMAKE_PROJECT_VERSION} PROPERTIES COMPILE_FLAGS "-DINSTALL_PATH=${CMAKE_INSTALL_PREFIX}" COMPILE_FLAGS "-DVERSION_NUMBER=${CMAKE_PROJECT_VERSION}")
target_compile_definitions(${PROJECT_NAME}-${CMAKE_PROJECT_VERSION} PRIVATE INSTALL_PATH=${CMAKE_INSTALL_PREFIX} VERSION_NUMBER=${CMAKE_PROJECT_VERSION})
target_include_directories(${PROJECT_NAME}-${CMAKE_PROJECT_VERSION} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third-party>
Expand Down

0 comments on commit 3fd348d

Please sign in to comment.