diff --git a/swiftwinrt/CMakeLists.txt b/swiftwinrt/CMakeLists.txt index 43ba8a5f..aa226c38 100644 --- a/swiftwinrt/CMakeLists.txt +++ b/swiftwinrt/CMakeLists.txt @@ -1,8 +1,9 @@ -project(swiftwinrt) - +# Set pre-project() cache variables set(CMAKE_C_COMPILER cl) set(CMAKE_CXX_COMPILER cl) +project(swiftwinrt) + set(SWIFTWINRT_VERSION_STRING "0.0.1") set(MicrosoftWindowsWinMD_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/winmd/src) diff --git a/tests/test_component/cpp/CMakeLists.txt b/tests/test_component/cpp/CMakeLists.txt index 1f77f261..c5162c11 100644 --- a/tests/test_component/cpp/CMakeLists.txt +++ b/tests/test_component/cpp/CMakeLists.txt @@ -1,6 +1,4 @@ -project(test_component_cpp) -include(nuget) - +# Set pre-project() cache variables # For debug builds, build with clang which enables us to use DWARF symbols # and debug both Swift and C++ code using lldb. if (${CMAKE_BUILD_TYPE} STREQUAL "DEBUG") @@ -14,6 +12,11 @@ else() set(CMAKE_C_COMPILER cl) set(CMAKE_CXX_COMPILER cl) endif() + +project(test_component_cpp) +include(nuget) + + set(H_FILE ${CMAKE_TEST_COMPONENT_OUTPUT}/test_component.h )