mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-26 22:27:39 -05:00
use set_target_properties (#32)
This commit is contained in:
@@ -31,8 +31,8 @@ CPMAddPackage(
|
||||
)
|
||||
|
||||
# add executable
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
add_executable(my-project my-project.cpp)
|
||||
set_target_properties(my-project PROPERTIES CXX_STANDARD 17)
|
||||
target_link_libraries(my-project LarsParser)
|
||||
```
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ CPMAddPackage(
|
||||
)
|
||||
|
||||
# add executable
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
add_executable(cpm-test-complex main.cpp)
|
||||
set_target_properties(cpm-test-complex PROPERTIES CXX_STANDARD 17)
|
||||
target_link_libraries(cpm-test-complex LHC LarsParser Glue)
|
||||
|
||||
# tests
|
||||
|
||||
@@ -12,8 +12,8 @@ CPMAddPackage(
|
||||
)
|
||||
|
||||
# add executable
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
add_executable(cpm-test-simple main.cpp)
|
||||
set_target_properties(cpm-test-simple PROPERTIES CXX_STANDARD 17)
|
||||
target_link_libraries(cpm-test-simple LarsParser)
|
||||
|
||||
# tests
|
||||
|
||||
Reference in New Issue
Block a user