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