Skip to content

Commit

Permalink
setup C compiler again
Browse files Browse the repository at this point in the history
no idea why needed?
  • Loading branch information
ClausKlein committed Mar 21, 2022
1 parent 75d642d commit 36a61d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tasks:

clean: |
{{if eq OS "windows"}}
powershell -c 'function rmrf($path) { if (test-path $path) { rm -r -force $path }}; rmrf ./test/build; rmrf ./test_install/build/
powershell -c 'function rmrf($path) { if (test-path $path) { rm -r -force $path }}; rmrf ./test/build; rmrf ./test_install/build
{{else}}
rm -rf ./test/build ./test_install/build/
rm -rf ./test/build ./test_install/build
{{end}}
9 changes: 4 additions & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ run_vcpkg()
project(
myproj
VERSION 0.2.0
LANGUAGES CXX)
LANGUAGES CXX C)

set(PCH_HEADERS
<Eigen/Dense>
Expand All @@ -38,10 +38,9 @@ project_options(
ENABLE_CPPCHECK
ENABLE_CLANG_TIDY
# ENABLE_INCLUDE_WHAT_YOU_USE
ENABLE_COVERAGE
# TODO(CK: should not installed with this option!) ENABLE_COVERAGE
# TBD: ENABLE_PCH
PCH_HEADERS
${PCH_HEADERS}
# TBD: PCH_HEADERS ${PCH_HEADERS}
ENABLE_DOXYGEN
ENABLE_INTERPROCEDURAL_OPTIMIZATION
ENABLE_NATIVE_OPTIMIZATION
Expand Down Expand Up @@ -83,7 +82,7 @@ add_library(lib INTERFACE)
set(INCLUDE_DIR "include")
target_include_directories(lib INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${INCLUDE_DIR}>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>") # TODO(refactor)
# TODO(CK): NO! target_link_libraries(lib INTERFACE project_options project_warnings)
# FIXME(CK: Not for INTERFACE libs!) target_link_libraries(lib INTERFACE project_options project_warnings)
target_link_system_libraries(
lib
INTERFACE
Expand Down
4 changes: 3 additions & 1 deletion test_install/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.16...3.22)

set(CMAKE_CXX_STANDARD 20)

### Add project_options
include(../src/Index.cmake)

Expand All @@ -8,7 +10,7 @@ run_vcpkg()
project(
anotherproj
VERSION 0.2.0
LANGUAGES CXX)
LANGUAGES CXX C)

# ### Initialize project_options
# project_options(
Expand Down

0 comments on commit 36a61d3

Please sign in to comment.