Skip to content

Commit

Permalink
240126.182445.HKT c examples: add m to target_link_libraries in C…
Browse files Browse the repository at this point in the history
…MakeLists.txt, or the example on README.md will not run
  • Loading branch information
zaikunzhang committed Jan 26, 2024
1 parent b9ea091 commit a617267
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion c/examples/bobyqa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.13)
project(bobyqa_example C)
find_package(PRIMA CONFIG REQUIRED)
add_executable(bobyqa_example bobyqa_example.c)
target_link_libraries(bobyqa_example prima::primac)
target_link_libraries(bobyqa_example prima::primac m)
install(TARGETS bobyqa_example DESTINATION bin)
2 changes: 1 addition & 1 deletion c/examples/cobyla/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.13)
project(cobyla_example C)
find_package(PRIMA CONFIG REQUIRED)
add_executable(cobyla_example cobyla_example.c)
target_link_libraries(cobyla_example prima::primac)
target_link_libraries(cobyla_example prima::primac m)
install(TARGETS cobyla_example DESTINATION bin)
2 changes: 1 addition & 1 deletion c/examples/lincoa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.13)
project(lincoa_example C)
find_package(PRIMA CONFIG REQUIRED)
add_executable(lincoa_example lincoa_example.c)
target_link_libraries(lincoa_example prima::primac)
target_link_libraries(lincoa_example prima::primac m)
install(TARGETS lincoa_example DESTINATION bin)
2 changes: 1 addition & 1 deletion c/examples/newuoa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.13)
project(newuoa_example C)
find_package(PRIMA CONFIG REQUIRED)
add_executable(newuoa_example newuoa_example.c)
target_link_libraries(newuoa_example prima::primac)
target_link_libraries(newuoa_example prima::primac m)
install(TARGETS newuoa_example DESTINATION bin)
2 changes: 1 addition & 1 deletion c/examples/uobyqa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ cmake_minimum_required(VERSION 3.13)
project(uobyqa_example C)
find_package(PRIMA CONFIG REQUIRED)
add_executable(uobyqa_example uobyqa_example.c)
target_link_libraries(uobyqa_example prima::primac)
target_link_libraries(uobyqa_example prima::primac m)
install(TARGETS uobyqa_example DESTINATION bin)

0 comments on commit a617267

Please sign in to comment.